#!/usr/bin/env node

/**
 * web-test
 * 测试
 *
 * @author wyz <https://github.com/44510709/cli_text.git>
 */

const init = require('./utils/init');
const cli = require('./utils/cli');
const log = require('./utils/log');

const input = cli.input;
const flags = cli.flags;
const { clear } = flags;

const getComponent = require('./utils/getComponent');

(async () => {
  init({ clear });
  input.includes(`help`) && cli.showHelp(0);

  flags.name && flags.destination && (await getComponent(flags.name, flags.destination))

})();
